package com.mars.demo.response;

import lombok.Getter;

public class Response {

    protected static int SUCCESS_CODE = 1;

    protected static int FAIL_CODE = -1;

    @Getter
    protected int resultCode;

    public static <T> Response success(T resultData){
        return new ResponseSuccess<T>(resultData);
    }

    public static Response fail(String describe){
        return new ResponseFail(describe);
    }

}
